<%#
# To change this template, choose Tools | Templates
# and open the template in the editor.
%>

<% form_for :event, @event, :url=>{:action=>"update_event"} do | f |%>
  ID:  <%= (@event.id|| "new") %> <%= f.hidden_field :id %><br />
  Name: <%= f.text_field :name, "size"=>100 %><br />
  Location: <%= f.text_field :location, "size"=>255 %><br />
  Start time:  <%= calendar_date_select :event, :start_time, :time => true %><br />
  End time: <%= calendar_date_select :event, :end_time, :time => true %><br />
  <% options = ''
     @conferences.each do | conf |
       options << "<option value=\"#{conf.id}\">#{conf.name}</option>"
     end
  %>    
  Conference: <%= select_tag "conference_id", options %><br />  
  Description: <%= f.text_area :description, "cols"=>80, "rows"=>5 %><br />
  <%= submit_tag %>
<%end%>

